import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from "pinia";
import ElementPlus from 'element-plus'
import navi from 'naive-ui'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import './styles/dark/css-vars.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 创建 Pinia 实例
const pinia = createPinia();
const app = createApp(App)
app.use(pinia).use(router).use(ElementPlus).use(navi).mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

